package com.gxa.meiye.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.meiye.core.pojo.domain.Order;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface ShopOrderMapper extends BaseMapper<Order>{
    Integer select(String phone);
    //Integer addCoupon(Order order);
    Integer addOrder(Order order);
    Integer update(@Param("serialNumber") String serialNumber, @Param("orderNumber") String orderNumber);
    //查询门店
    Integer selectShop(String name);
    //查询项目
    Integer selectProject(String name);
    //根据编号查询流水号
    String selectLiuSui(String orderNumber);
    //修改退款成功的状态
    Integer updateRefund(String orderNumber);
    //查询订单
    List<Order> list(String phone);
    //退款中
    Integer updateRe(String orderNumber);
    //取消退款
    Integer updateCancel(String orderNumber);
    //取消
    Integer Cancel(String orderNumber);
    //查询订单id
    Integer selectOrderId(String orderNumber);
    //查询reason的id
    Integer selectReasonId(String reason);
    //添加取消订单信息
    Integer addCancel(@Param("orderId") Integer orderId, @Param("reasonId") Integer reasonId, @Param("content") String content);
    //查看订单关联门店电话
    String selectShopPhone(String orderNumber);
}
